<h3>Edit Document</h3>
<br />

<?php get_error($error) ?>
<?php echo form_open_multipart('documents/update') ?>

<table>
    <?php foreach($rows->result() as $document ):?>
    <tr>
        <td>Judul</td>
        <td><?php echo form_input('title', $document->title, 'class="form_pendek"') ?></td>
    </tr>
    <tr>
        <td>Document / File</td>
        <td>
            <input type="file" name="userfile" id="userfile"/>
        </td>
    </tr>
    <tr>
        <td></td>
        <td><?php echo form_submit('submit', 'Update', 'class="button"') ?></td>
    </tr>
    <?php endforeach ?>
</table>

<?php form_close() ?>